package org.example.judge_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.judge_pojo.Auth;

import java.util.List;

//@Mapper
public interface AuthMapper extends BaseMapper<Auth> {

    /**
     * 获取指定用户的所有权限
     */
//    @Select("select tb_auth.* from tb_auth,tb_user_auth " +
//            "where #{id} = tb_user_auth.user_id and tb_user_auth.auth_id = tb_auth.id")
    List<Auth> getAuthsByUserId(String userId,Integer status);
}
